import { REACT_TEXT } from "./constants";

export function wrapToVdom(element) {
  return typeof element === "string" || typeof element === "number"
    ? { type: REACT_TEXT, props: element }
    : element;
}

export function isFunction(value) {
  return typeof value === "function";
}
